home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
language
/
embedded
/
68hc11
/
smallc11.arc
/
README
< prev
next >
Wrap
Text File
|
1988-07-04
|
3KB
|
96 lines
Smallc V2 (hc11 code generator)
This archive contains the source code used to generate the
archive "smallc11.arc" , also on the freeware line. This has
been much abused in order to make it WORK using the MIX-C
compiler. It is in the beta site stage & should be used with
CARE. As I have had numerous requests for this source, here
it is in all it's 'glory'. It seems unlikely that I'll be
able to do any cleanup [bootleg project] for the rest of
1987. You are free to use for yourself
& modify, but should give the original author [J.E. Hendrix]
due credit for his unselfish donation to the public domain.
As with any public domain, pls don't copy for commericial
purposes - we want to encourage more folks to donate...
John Dumas July 16 1987
Changes to Motorola Small-C Version
Being in the middle of a mid-size project, i encountered a problem
with the original version of this little cross-compiler.
Compiling a c-source of about 400 lines of code, my pc ran into
nowhere... redirecting the output to stdout showed two error
messages:
Runtime Error 98: Not Enough Parameters and
Runtime Error 81: Out of Stack
A call to John Dumas didn't solve the problem because he hadn't
the time to do any further work on the compiler.
So, i decided to make the source compilable with the Borland
Turbo-C Compiler ( Version 1.5 ).
It was done the quick-and-dirty way, because i wanted to work on
my project, not on the compiler....
The changes are:
- changing the file descriptors "input","input2",
"output" and "listfp" from int to FILE *.
- changing variables and function named "const"
to "const1" (ansi c!).
- changing linelength to 128 chars
- changing function "duanefgets()", see CC5.C
The sources are to be compiled using the Turbo-C small memory
model. You get masses of warnings, but that's perfectly normal...
Files added :
TCCONFIG.TC - Turbo-C configuration file
SC11.PRJ - Project file for Turbo-C
SC11.EXE - new compiler
A side effect of this is, that the new compiler is much faster
than the first version and much smaller.
If you have any troubles compiling the compiler, don't hesitate
to call me.
If someone enhances or further modifies the compiler, please
tell me.
Hellmuth Michaelis
c/o HCS Hanseatischer Computerservice GmbH
Oldesloer Strasse 97-99
D-2000 Hamburg 61
W-Germany
Tel: 040 / 55 010 75
Further modifications to Small-C Compiler for 68HC11
----------------------------------------------------
july, 4, 1988
- standard include file syntax ( either "file" or <file> )
- compiler recognizes now hexadecimal numbers in the form "0x1234"
- compiler gives error messages to stdout
- compiler recognizes now command line options:
"-c" = include the c-source code as comments in the output file
"-bxxxx" = start output label numbering with label "ccxxxx"
"-m" = monitor compiler activity by printing first function line
"-?" = give help on command line options
- added file "chcmpd.c/exe" to change generated opcode "cmpd" to "cpd"
for assembling resulting output file with richard soya's
absolute 68hc11 assembler
being at the end of my project, i found the compiler to produce bug-free
code ( compiling a 5000 lines c-code program ).
i do not use the opt11 code optimizer because it seems to produce bugs.
H. Michaelis